package com.周阳.建造者模式;

/**
 * 小米具体建造者
 */
public class XiaomiBuilder extends AbstractBuilder{

    public XiaomiBuilder(){
        phone=new Phone();
    }

    @Override
    AbstractBuilder customCpu(String cpu) {
        phone.cpu=cpu;
        return this;
    }

    @Override
    AbstractBuilder customMem(String mem) {
        phone.mem=mem;
        return this;
    }

    @Override
    AbstractBuilder customDisk(String disk) {
        phone.disk=disk;
        return this;
    }

    @Override
    AbstractBuilder customCam(String cam) {
        phone.cam=cam;
        return this;
    }
}
